# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	libindicator
PORTVERSION=	12.10.2
CATEGORIES=	devel
MASTER_SITES=	UBUNTU
DIST_SUBDIR=	ubuntu

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	Indicator applet library

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USES=	pkgconfig gmake libtool pathfix ubuntu:snapshot
GNU_CONFIGURE=	yes
USE_AUTOTOOLS=	libtoolize autoconf aclocal automake
USE_GNOME=	glib20 gtk30
USE_UBUNTU=	ido
USE_LDCONFIG=	yes

UBUNTU_RELEASE=	14.04
UBUNTU_SNAPSHOT=	20140402

PATHFIX_MAKEFILEIN=	Makefile.am

CONFIGURE_ARGS+=--disable-tests \
	--disable-static \
	--with-gtk=3

post-patch:
	${FIND} ${WRKSRC}/libindicator -type f -name '*.pc.in.in' \
		| ${XARGS} \
		${REINPLACE_CMD} -e 's|/@indicator_abi_version@/|/0.@indicator_abi_version@/|'

.include <bsd.port.mk>
